package com.demo.test.controller;

import com.demo.test.entity.Tongji;
import com.demo.test.service.ITongjiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XieHuan
 * @since 2017-06-13
 */
@Controller
@RequestMapping("/tongji")
public class TongjiController {

    @Autowired
    private ITongjiService iTongjiService;

    @RequestMapping("/allTongji")
    @ResponseBody
    public List<Tongji> AllTongji(){
        return  iTongjiService.selectList(null);

    }
	
}
